Objects Reference

class local_system

Definition

class local_system
{
  public:
  vector X,Y,Z;
  mat4x4 mat,mat_t;

  void update_mat();
  void rotate(vector& rot);
  void rotate(float ang,vector& v);
  void rotate(vector &v, vector &u, float maxang=360);
  void align_z(vector& z);
};

Data Members

Member Type Description
X vector the X base axis
Y vector the Y base axis
Z vector the Z base axis
mat mat4x4 matrix rotating from local to global
mat_t mat4x4 matrix for rotating from global to local

Methods

update_mat, rotate, align_z

Remarks

This class implements a local system. A local system is defined by three perpendicular vectors (the base axis).

See Also

vector, mat4x4